<?php
	require_once(dirname(__FILE__)."/include/login_data.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
	<link rel="stylesheet"  type="text/css" href="css/common.css" />
	<title>账号登录</title>
	<script language="javascript" type="text/javascript">
//<![CDATA[
function CheckNotEmpty()
{
	if ( document.getElementById("user").value == "" || document.getElementById("psw").value == "" )
	{
		window.alert("账号密码不能为空！");
		return false;
	}
	else
		return true;
}
//]]>
</script>
</head>
<body>
	<table align="center" style="width:<?php echo $width;?>" border="0">
		<tr>
			<td>
				<?php require_once("header.php");?></td>
		</tr>
		<tr>
			<td id="content">
				<br />
				<br />
				<center>
					<div style="width:80%;height:25px;text-align:left;font-weight:bold; padding:5px 5px 5px 5px;background-color:#555555;color:#ffffff;font-size:20px">登录</div>
					<form action="loginpage.php" method="post" onsubmit="return CheckNotEmpty()">
						<br />
						<table style="width:80%;">
							<tr>
								<td style="text-align:right;width:150px">账号：</td>
								<td style="text-align: left;">
									<input type="text" id="user" name="user" style="width: 150px;border:1px red dashed" />
								</td>
							</tr>
							<tr>
								<td style="text-align:right;width:150px">密码：</td>
								<td style="text-align: left;">
									<input type="password" id="psw" name="psw" style="width: 150px;border:1px red dashed" />
								</td>
							</tr>
							<tr>
								<td></td>
								<td>
									<div style="text-align:left;padding: 15px 10px 5px 10px;">
										<input type="submit" name="submit" value="登录" />
									</div>
								</td>
							</tr>
						</table>
					</form>
				</center>
				<br />
				<br />
				<br />
				<br />
				<br />
			</td>
		</tr>
		<tr>
			<td>
				<?php require_once("footer.php") ?></td>
		</tr>
	</table>
</body>
</html>